package com.taotao.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {
    @RequestMapping("/")
    public String index() {
        return "index";
    }

    @RequestMapping("/page/{view}")
    public String page(@PathVariable String view) {
        return view;
    }

    @RequestMapping("/{view}")
    public String view(@PathVariable String view) {
        return view;
    }
}
